package com.thb.pay.api.sys.fallback;

import com.thb.pay.api.sys.SysLogServiceApi;
import com.thb.pay.api.sys.vo.req.SysLogPageReq;
import com.thb.pay.api.sys.vo.req.SysLogReq;
import com.thb.pay.api.sys.vo.resp.SysLogVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

@Slf4j
@Component
public class SysLogServiceApiFallbackFactory implements FallbackFactory<SysLogServiceApi> {


    @Override
    public SysLogServiceApi create(Throwable throwable) {
        return new SysLogServiceApi() {

            @Override
            public PageResult<SysLogVo> findPage(@RequestBody SysLogPageReq pageReq) {
                return null;
            }

            @Override
            public void addLog(@RequestBody SysLogReq logReq) {

            }
        };
    }
}